const mongoose = require('mongoose');
const db = require('./db/db');
const mySonModel = require('./models/mySonModel')
db(() => {
//插入文档
    mySonModel.create({
        name: "李四",
        age: 18
    }, (err, data) => {
        if (err) {
            console.log(err);
            return;
        }
        console.log(data);
        //断开连接
        mongoose.disconnect();
    });
}, () => {
});

